package com.nacai.im;

public class GroupOffset {

    private long pendingSyncKey;
    private boolean isGroupSyncing;                             //群组同步标志
    private long nextSyncKey;
    private long localOffset;
    private long groupId;
    private long syncGroupTimestamp;                            //上一次同步的时间

    public long getSyncGroupTimestamp() {
        return syncGroupTimestamp;
    }

    public void setSyncGroupTimestamp(long syncGroupTimestamp) {
        this.syncGroupTimestamp = syncGroupTimestamp;
    }

    public long getPendingSyncKey() {
        return pendingSyncKey;
    }

    public void setPendingSyncKey(long pendingSyncKey) {
        this.pendingSyncKey = pendingSyncKey;
    }

    public boolean isGroupSyncing() {
        return isGroupSyncing;
    }

    public void setGroupSyncing(boolean groupSyncing) {
        isGroupSyncing = groupSyncing;
    }

    public long getNextSyncKey() {
        return nextSyncKey;
    }

    public void setNextSyncKey(long nextSyncKey) {
        this.nextSyncKey = nextSyncKey;
    }

    public long getLocalOffset() {
        return localOffset;
    }

    public void setLocalOffset(long localOffset) {
        this.localOffset = localOffset;
    }

    public long getGroupId() {
        return groupId;
    }

    public void setGroupId(long groupId) {
        this.groupId = groupId;
    }

    @Override
    public String toString() {
        return "GroupOffset{" +
                "pendingSyncKey=" + pendingSyncKey +
                ", isGroupSyncing=" + isGroupSyncing +
                ", nextSyncKey=" + nextSyncKey +
                ", localOffset=" + localOffset +
                ", groupId=" + groupId +
                ", syncGroupTimestamp=" + syncGroupTimestamp +
                '}';
    }
}
